package com.emily.login.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/login")
public class LoginViewController {
    @GetMapping
    public String login(ModelMap ModelMap){
        System.out.print("进入登录页面");
        ModelMap.put("defaultUserName", "admin");
        return  "login";
    }
}
